{
//=========Macro generated from canvas: c1/c1
//=========  (Mon Mar 18 01:05:57 2013) by ROOT version5.32/00
   TCanvas *c1 = new TCanvas("c1", "c1",2,79,800,600);
   gStyle->SetOptFit(1);
   c1->Range(-246.3768,-0.2432432,1202.899,1.108108);
   c1->SetFillColor(10);
   c1->SetBorderMode(0);
   c1->SetBorderSize(2);
   c1->SetGridx();
   c1->SetGridy();
   c1->SetTickx(1);
   c1->SetTicky(1);
   c1->SetLeftMargin(0.17);
   c1->SetRightMargin(0.14);
   c1->SetTopMargin(0.08);
   c1->SetBottomMargin(0.18);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   c1->SetFrameLineWidth(2);
   c1->SetFrameBorderMode(0);
   
   TH1F *hframe__1 = new TH1F("hframe__1","Config:2  /  #alpha = 0.18",1000,0,1000);
   hframe__1->SetMinimum(0);
   hframe__1->SetMaximum(1);
   hframe__1->SetDirectory(0);
   hframe__1->SetStats(0);
   hframe__1->SetLineWidth(2);
   hframe__1->SetMarkerStyle(20);
   hframe__1->SetMarkerSize(0.5);
   hframe__1->GetXaxis()->SetTitle("Er (keV)");
   hframe__1->GetXaxis()->SetNdivisions(506);
   hframe__1->GetXaxis()->SetLabelFont(42);
   hframe__1->GetXaxis()->SetLabelOffset(0.015);
   hframe__1->GetXaxis()->SetTitleSize(0.05);
   hframe__1->GetXaxis()->SetTitleFont(42);
   hframe__1->GetYaxis()->SetTitle("Efficiency");
   hframe__1->GetYaxis()->SetNdivisions(506);
   hframe__1->GetYaxis()->SetLabelFont(42);
   hframe__1->GetYaxis()->SetLabelOffset(0.015);
   hframe__1->GetYaxis()->SetTitleSize(0.05);
   hframe__1->GetYaxis()->SetTitleOffset(1.1);
   hframe__1->GetYaxis()->SetTitleFont(42);
   hframe__1->GetZaxis()->SetLabelFont(42);
   hframe__1->GetZaxis()->SetLabelOffset(0.015);
   hframe__1->GetZaxis()->SetTitleSize(0.05);
   hframe__1->GetZaxis()->SetTitleOffset(1.1);
   hframe__1->GetZaxis()->SetTitleFont(42);
   hframe__1->Draw(" ");
   
   TH1F *hEffvsEr = new TH1F("hEffvsEr","hEffvsEr",1000,0,1000);
   hEffvsEr->SetBinContent(16,0.001);
   hEffvsEr->SetBinContent(21,0.001);
   hEffvsEr->SetBinContent(31,0.016);
   hEffvsEr->SetBinContent(41,0.087);
   hEffvsEr->SetBinContent(51,0.194);
   hEffvsEr->SetBinContent(71,0.544);
   hEffvsEr->SetBinContent(101,0.874);
   hEffvsEr->SetBinContent(201,0.995);
   hEffvsEr->SetBinContent(501,0.999);
   hEffvsEr->SetBinContent(1001,0.999);
   hEffvsEr->SetBinError(16,0.0009994999);
   hEffvsEr->SetBinError(21,0.0009994999);
   hEffvsEr->SetBinError(31,0.003967871);
   hEffvsEr->SetBinError(41,0.008912407);
   hEffvsEr->SetBinError(51,0.01250456);
   hEffvsEr->SetBinError(71,0.01575005);
   hEffvsEr->SetBinError(101,0.010494);
   hEffvsEr->SetBinError(201,0.00223047);
   hEffvsEr->SetBinError(501,0.0009994934);
   hEffvsEr->SetBinError(1001,0.0009994934);
   hEffvsEr->SetEntries(20);
   
   TF1 *func = new TF1("*func",0,1000,5);
    //The original function :  had originally been created by:
    //TF1 *func = new TF1("func",,0,1000,5);
   func->SetRange(0,1000);
   func->SetName("func");
   func->SetTitle("");
   func->SetSavedPoint(0,0);
   func->SetSavedPoint(1,0);
   func->SetSavedPoint(2,0.001790776);
   func->SetSavedPoint(3,0.01454673);
   func->SetSavedPoint(4,0.06880692);
   func->SetSavedPoint(5,0.1977306);
   func->SetSavedPoint(6,0.3749397);
   func->SetSavedPoint(7,0.5338513);
   func->SetSavedPoint(8,0.6594807);
   func->SetSavedPoint(9,0.7720838);
   func->SetSavedPoint(10,0.8702028);
   func->SetSavedPoint(11,0.9396048);
   func->SetSavedPoint(12,0.9775128);
   func->SetSavedPoint(13,0.9933857);
   func->SetSavedPoint(14,0.9984766);
   func->SetSavedPoint(15,0.9997269);
   func->SetSavedPoint(16,0.9999621);
   func->SetSavedPoint(17,0.9999959);
   func->SetSavedPoint(18,0.9999997);
   func->SetSavedPoint(19,1);
   func->SetSavedPoint(20,1);
   func->SetSavedPoint(21,1);
   func->SetSavedPoint(22,1);
   func->SetSavedPoint(23,1);
   func->SetSavedPoint(24,1);
   func->SetSavedPoint(25,1);
   func->SetSavedPoint(26,1);
   func->SetSavedPoint(27,1);
   func->SetSavedPoint(28,1);
   func->SetSavedPoint(29,1);
   func->SetSavedPoint(30,1);
   func->SetSavedPoint(31,1);
   func->SetSavedPoint(32,1);
   func->SetSavedPoint(33,1);
   func->SetSavedPoint(34,1);
   func->SetSavedPoint(35,1);
   func->SetSavedPoint(36,1);
   func->SetSavedPoint(37,1);
   func->SetSavedPoint(38,1);
   func->SetSavedPoint(39,1);
   func->SetSavedPoint(40,1);
   func->SetSavedPoint(41,1);
   func->SetSavedPoint(42,1);
   func->SetSavedPoint(43,1);
   func->SetSavedPoint(44,1);
   func->SetSavedPoint(45,1);
   func->SetSavedPoint(46,1);
   func->SetSavedPoint(47,1);
   func->SetSavedPoint(48,1);
   func->SetSavedPoint(49,1);
   func->SetSavedPoint(50,1);
   func->SetSavedPoint(51,1);
   func->SetSavedPoint(52,1);
   func->SetSavedPoint(53,1);
   func->SetSavedPoint(54,1);
   func->SetSavedPoint(55,1);
   func->SetSavedPoint(56,1);
   func->SetSavedPoint(57,1);
   func->SetSavedPoint(58,1);
   func->SetSavedPoint(59,1);
   func->SetSavedPoint(60,1);
   func->SetSavedPoint(61,1);
   func->SetSavedPoint(62,1);
   func->SetSavedPoint(63,1);
   func->SetSavedPoint(64,1);
   func->SetSavedPoint(65,1);
   func->SetSavedPoint(66,1);
   func->SetSavedPoint(67,1);
   func->SetSavedPoint(68,1);
   func->SetSavedPoint(69,1);
   func->SetSavedPoint(70,1);
   func->SetSavedPoint(71,1);
   func->SetSavedPoint(72,1);
   func->SetSavedPoint(73,1);
   func->SetSavedPoint(74,1);
   func->SetSavedPoint(75,1);
   func->SetSavedPoint(76,1);
   func->SetSavedPoint(77,1);
   func->SetSavedPoint(78,1);
   func->SetSavedPoint(79,1);
   func->SetSavedPoint(80,1);
   func->SetSavedPoint(81,1);
   func->SetSavedPoint(82,1);
   func->SetSavedPoint(83,1);
   func->SetSavedPoint(84,1);
   func->SetSavedPoint(85,1);
   func->SetSavedPoint(86,1);
   func->SetSavedPoint(87,1);
   func->SetSavedPoint(88,1);
   func->SetSavedPoint(89,1);
   func->SetSavedPoint(90,1);
   func->SetSavedPoint(91,1);
   func->SetSavedPoint(92,1);
   func->SetSavedPoint(93,1);
   func->SetSavedPoint(94,1);
   func->SetSavedPoint(95,1);
   func->SetSavedPoint(96,1);
   func->SetSavedPoint(97,1);
   func->SetSavedPoint(98,1);
   func->SetSavedPoint(99,1);
   func->SetSavedPoint(100,1);
   func->SetSavedPoint(101,0);
   func->SetSavedPoint(102,1000);
   func->SetBit(TF1::kNotDraw);
   func->SetFillColor(10);
   func->SetFillStyle(0);
   func->SetMarkerStyle(20);
   func->SetMarkerSize(0.5);

   Int_t ci;   // for color index setting
   ci = TColor::GetColor("#ff0000");
   func->SetLineColor(ci);
   func->SetLineWidth(2);
   func->SetChisquare(11.36478);
   func->SetNDF(4);
   func->GetXaxis()->SetNdivisions(506);
   func->GetXaxis()->SetLabelFont(42);
   func->GetXaxis()->SetLabelOffset(0.015);
   func->GetXaxis()->SetTitleSize(0.05);
   func->GetXaxis()->SetTitleFont(42);
   func->GetYaxis()->SetNdivisions(506);
   func->GetYaxis()->SetLabelFont(42);
   func->GetYaxis()->SetLabelOffset(0.015);
   func->GetYaxis()->SetTitleSize(0.05);
   func->GetYaxis()->SetTitleOffset(1.1);
   func->GetYaxis()->SetTitleFont(42);
   func->SetParameter(0,87.32733);
   func->SetParError(0,7.009618);
   func->SetParLimits(0,1,100);
   func->SetParameter(1,27.09226);
   func->SetParError(1,6.121511);
   func->SetParLimits(1,10,100);
   func->SetParameter(2,0.5104951);
   func->SetParError(2,0.1393244);
   func->SetParLimits(2,0,1);
   func->SetParameter(3,53.92697);
   func->SetParError(3,2.554278);
   func->SetParLimits(3,10,300);
   func->SetParameter(4,17.74603);
   func->SetParError(4,1.625091);
   func->SetParLimits(4,0,200);
   hEffvsEr->GetListOfFunctions()->Add(func);
   hEffvsEr->SetLineWidth(2);
   hEffvsEr->SetMarkerStyle(21);
   hEffvsEr->GetXaxis()->SetNdivisions(506);
   hEffvsEr->GetXaxis()->SetLabelFont(42);
   hEffvsEr->GetXaxis()->SetLabelOffset(0.015);
   hEffvsEr->GetXaxis()->SetTitleSize(0.05);
   hEffvsEr->GetXaxis()->SetTitleFont(42);
   hEffvsEr->GetYaxis()->SetNdivisions(506);
   hEffvsEr->GetYaxis()->SetLabelFont(42);
   hEffvsEr->GetYaxis()->SetLabelOffset(0.015);
   hEffvsEr->GetYaxis()->SetTitleSize(0.05);
   hEffvsEr->GetYaxis()->SetTitleOffset(1.1);
   hEffvsEr->GetYaxis()->SetTitleFont(42);
   hEffvsEr->GetZaxis()->SetLabelFont(42);
   hEffvsEr->GetZaxis()->SetLabelOffset(0.015);
   hEffvsEr->GetZaxis()->SetTitleSize(0.05);
   hEffvsEr->GetZaxis()->SetTitleOffset(1.1);
   hEffvsEr->GetZaxis()->SetTitleFont(42);
   hEffvsEr->Draw("samepe");
   
   TF1 *func = new TF1("*func",0,1000,5);
    //The original function :  had originally been created by:
    //TF1 *func = new TF1("func",,0,1000,5);
   func->SetRange(0,1000);
   func->SetName("func");
   func->SetTitle("");
   func->SetSavedPoint(0,0);
   func->SetSavedPoint(1,0);
   func->SetSavedPoint(2,0.001790776);
   func->SetSavedPoint(3,0.01454673);
   func->SetSavedPoint(4,0.06880692);
   func->SetSavedPoint(5,0.1977306);
   func->SetSavedPoint(6,0.3749397);
   func->SetSavedPoint(7,0.5338513);
   func->SetSavedPoint(8,0.6594807);
   func->SetSavedPoint(9,0.7720838);
   func->SetSavedPoint(10,0.8702028);
   func->SetSavedPoint(11,0.9396048);
   func->SetSavedPoint(12,0.9775128);
   func->SetSavedPoint(13,0.9933857);
   func->SetSavedPoint(14,0.9984766);
   func->SetSavedPoint(15,0.9997269);
   func->SetSavedPoint(16,0.9999621);
   func->SetSavedPoint(17,0.9999959);
   func->SetSavedPoint(18,0.9999997);
   func->SetSavedPoint(19,1);
   func->SetSavedPoint(20,1);
   func->SetSavedPoint(21,1);
   func->SetSavedPoint(22,1);
   func->SetSavedPoint(23,1);
   func->SetSavedPoint(24,1);
   func->SetSavedPoint(25,1);
   func->SetSavedPoint(26,1);
   func->SetSavedPoint(27,1);
   func->SetSavedPoint(28,1);
   func->SetSavedPoint(29,1);
   func->SetSavedPoint(30,1);
   func->SetSavedPoint(31,1);
   func->SetSavedPoint(32,1);
   func->SetSavedPoint(33,1);
   func->SetSavedPoint(34,1);
   func->SetSavedPoint(35,1);
   func->SetSavedPoint(36,1);
   func->SetSavedPoint(37,1);
   func->SetSavedPoint(38,1);
   func->SetSavedPoint(39,1);
   func->SetSavedPoint(40,1);
   func->SetSavedPoint(41,1);
   func->SetSavedPoint(42,1);
   func->SetSavedPoint(43,1);
   func->SetSavedPoint(44,1);
   func->SetSavedPoint(45,1);
   func->SetSavedPoint(46,1);
   func->SetSavedPoint(47,1);
   func->SetSavedPoint(48,1);
   func->SetSavedPoint(49,1);
   func->SetSavedPoint(50,1);
   func->SetSavedPoint(51,1);
   func->SetSavedPoint(52,1);
   func->SetSavedPoint(53,1);
   func->SetSavedPoint(54,1);
   func->SetSavedPoint(55,1);
   func->SetSavedPoint(56,1);
   func->SetSavedPoint(57,1);
   func->SetSavedPoint(58,1);
   func->SetSavedPoint(59,1);
   func->SetSavedPoint(60,1);
   func->SetSavedPoint(61,1);
   func->SetSavedPoint(62,1);
   func->SetSavedPoint(63,1);
   func->SetSavedPoint(64,1);
   func->SetSavedPoint(65,1);
   func->SetSavedPoint(66,1);
   func->SetSavedPoint(67,1);
   func->SetSavedPoint(68,1);
   func->SetSavedPoint(69,1);
   func->SetSavedPoint(70,1);
   func->SetSavedPoint(71,1);
   func->SetSavedPoint(72,1);
   func->SetSavedPoint(73,1);
   func->SetSavedPoint(74,1);
   func->SetSavedPoint(75,1);
   func->SetSavedPoint(76,1);
   func->SetSavedPoint(77,1);
   func->SetSavedPoint(78,1);
   func->SetSavedPoint(79,1);
   func->SetSavedPoint(80,1);
   func->SetSavedPoint(81,1);
   func->SetSavedPoint(82,1);
   func->SetSavedPoint(83,1);
   func->SetSavedPoint(84,1);
   func->SetSavedPoint(85,1);
   func->SetSavedPoint(86,1);
   func->SetSavedPoint(87,1);
   func->SetSavedPoint(88,1);
   func->SetSavedPoint(89,1);
   func->SetSavedPoint(90,1);
   func->SetSavedPoint(91,1);
   func->SetSavedPoint(92,1);
   func->SetSavedPoint(93,1);
   func->SetSavedPoint(94,1);
   func->SetSavedPoint(95,1);
   func->SetSavedPoint(96,1);
   func->SetSavedPoint(97,1);
   func->SetSavedPoint(98,1);
   func->SetSavedPoint(99,1);
   func->SetSavedPoint(100,1);
   func->SetSavedPoint(101,0);
   func->SetSavedPoint(102,1000);
   func->SetFillColor(10);
   func->SetFillStyle(0);
   func->SetMarkerStyle(20);
   func->SetMarkerSize(0.5);

   ci = TColor::GetColor("#ff0000");
   func->SetLineColor(ci);
   func->SetLineWidth(2);
   func->SetChisquare(11.36478);
   func->SetNDF(4);
   func->GetXaxis()->SetNdivisions(506);
   func->GetXaxis()->SetLabelFont(42);
   func->GetXaxis()->SetLabelOffset(0.015);
   func->GetXaxis()->SetTitleSize(0.05);
   func->GetXaxis()->SetTitleFont(42);
   func->GetYaxis()->SetNdivisions(506);
   func->GetYaxis()->SetLabelFont(42);
   func->GetYaxis()->SetLabelOffset(0.015);
   func->GetYaxis()->SetTitleSize(0.05);
   func->GetYaxis()->SetTitleOffset(1.1);
   func->GetYaxis()->SetTitleFont(42);
   func->SetParameter(0,87.32733);
   func->SetParError(0,7.009618);
   func->SetParLimits(0,1,100);
   func->SetParameter(1,27.09226);
   func->SetParError(1,6.121511);
   func->SetParLimits(1,10,100);
   func->SetParameter(2,0.5104951);
   func->SetParError(2,0.1393244);
   func->SetParLimits(2,0,1);
   func->SetParameter(3,53.92697);
   func->SetParError(3,2.554278);
   func->SetParLimits(3,10,300);
   func->SetParameter(4,17.74603);
   func->SetParError(4,1.625091);
   func->SetParLimits(4,0,200);
   func->Draw("same");
   c1->Modified();
   c1->cd();
   c1->SetSelected(c1);
}
